package com.lhsy.djcloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wangzw
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dj_notice_message")
public class NoticeMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer tenantId;

    /**
     * 消息类型 1=公告 2=简报 3=消息
     */
    private Integer type;

    /**
     * 消息组id
     */
    private Integer groupId;

    private Integer sendUserId;

    private Integer targetUserId;

    private String title;

    private String content;

    /**
     * 0=未发送 1=已发送 2=发送失败
     */
    private Integer status;

    /**
     * 任务状态 1=待办 2=处理中 3=完成
     */
    private Integer taskStatus;

    /**
     * 0=未读 1=已读
     */
    private Boolean readFlag;

    private String fileName;

    private String filePath;

    private Boolean receiveDelete;

    private Boolean deleteFlag;

    private Date createTime;

    private String createName;

    private Date updateTime;

    private String updateName;

    @TableField(exist = false)
    private String sendUserName;

    @TableField(exist = false)
    private String targetUserName;

    @TableField(exist = false)
    private String sendUserDeptName;
    @TableField(exist = false)
    private String targetUserDeptName;
}
